using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using cn.Util;

namespace yq.Model.Logic
{
    /// <summary>
    /// Sys_Api - 外部接口 - 对象继承类
    /// </summary>
    [MetadataType(typeof(SysApiValidaTion))]
    public class SysApi : ISysApi<SysApi>
    {


       #region 生成实体类验证属性
       /// <summary>
       /// 辅助验证类
       /// </summary>
       [Bind]
       public class SysApiValidaTion
       {

     

        /// <summary>
        /// ApiId
        /// </summary>
        [Display(Name ="ApiId")]
        [Required]
        [StringLength(36)]
        public String WebId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 名称
        /// </summary>
        [Display(Name ="名称")]
        [Required]
        [StringLength(100)]
        public String Title
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 说明
        /// </summary>
        [Display(Name ="说明")]
        [StringLength(500)]
        public String Explain
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 开发商网站
        /// </summary>
        [Display(Name ="开发商网站")]
        [StringLength(100)]
        public String WebLink
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 外部图片
        /// </summary>
        [Display(Name ="外部图片")]
        [StringLength(100)]
        public String ImgUlr
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 单独登录地址
        /// </summary>
        [Display(Name ="单独登录地址")]
        [StringLength(200)]
        public String SsoUrl
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 单点登录识别域名
        /// </summary>
        [Display(Name ="单点登录识别域名")]
        [StringLength(200)]
        public String SsoDomain
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 添加时间
        /// </summary>
        [Display(Name ="添加时间")]

        public DateTime AddTime
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 状态
        /// </summary>
        [Display(Name ="状态")]
        [Required]
        [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.BooleanType Status
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 添加人
        /// </summary>
        [Display(Name ="添加人")]
        [Required]
        [StringLength(36)]
        public String UserId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 打开方式
        /// </summary>
        [Display(Name ="打开方式")]
        [Required]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.SysApi.OpenType OpenType
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 是否允许访问人员列表
        /// </summary>
        [Display(Name ="是否允许访问人员列表")]
        [Required]
        [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.BooleanType IsUserList
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 是否允许读取人员详细信息
        /// </summary>
        [Display(Name ="是否允许读取人员详细信息")]
        [Required]
        [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.BooleanType IsUserDetailed
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 是否允许读取社区内容
        /// </summary>
        [Display(Name ="是否允许读取社区内容")]
        [Required]
        [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.BooleanType IsCommunity
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 排序
        /// </summary>
        [Display(Name ="排序")]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public int Sno
        {
         get; set; 
        }


       

       
       }
       #endregion 生成实体类验证属性
    }
}
